package com.itdianzi.controller.system;

import com.github.pagehelper.PageInfo;
import com.itdianzi.controller.base.BaseController;
import com.itdianzi.service.system.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/system/log")
public class SysLogController extends BaseController {
    @Autowired
    private SysLogService sysLogService;
    @RequestMapping(value = "/list",name = "日志查询")
    public String list(@RequestParam(defaultValue = "1") Integer page , @RequestParam(defaultValue = "10") Integer size) {
        PageInfo pageInfo = sysLogService.findByPage(page, size,companyId);
        request.setAttribute("page", pageInfo);
        return "/system/log/log-list";
    }
}
